﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Carwash.CW_Functions
{
    class CW_Functions_Facade
    {

        private CW_Funtions functions_instance = new CW_Funtions();

        /// <summary>
        /// this method delegates the implementation to CW_Functions
        /// </summary>
        /// <param name="pin"></param>
        /// <returns>return the type of PIN associated with this PIN</returns>
        public int enterPin(int pin)
        {
            return functions_instance.enterPin(pin);
        }

        /// <summary>
        /// this method delegates the implementation to CW_Functions
        /// </summary>
        /// <param name="cwRequested"></param>
        /// <returns>returns the type of carwash granted</returns>
        public int requestCarwash(int cwRequested)
        {
            return functions_instance.requestCarwash(cwRequested);
        }

        /// <summary>
        /// this method delegates the implementation to CW_Functions
        /// </summary>
        /// <returns>returns whether the operation was successful</returns>
        public bool payCarwashWithCash()
        {
            return functions_instance.payCarwashWithCash();
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="cardNumber"></param>
        /// <returns></returns>
        public bool payCarwashWithCreditCard(string cardNumber)
        {
            return payCarwashWithCreditCard(cardNumber);
        }
    }
}
